package pikes.ecma;

import java.io.IOException;

import pikes.core.AbstractPrintable;
import pikes.uri.URI;

public class ScriptURI extends AbstractPrintable implements URI {

	private SourceElement ecmaCode = null;

	public ScriptURI(SourceElement ecmaCode) {
		this.ecmaCode = ecmaCode;
	}

	public void print(Appendable appendable) throws IOException {
		appendable.append("javascript:");
		ecmaCode.print(appendable);
	}

}
